<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script type="text/javascript">
    let student = {
    	name: 'zhangsan',
      age: 18,
      school: {
    		name: '武汉大学',
    		study: function () {
          console.log(this.name);   // 武汉大学
					console.log("在学校上课学习");
				}
      },
      say: function () {
				console.log(this.age);
				this.school.study();
			}
    };

    // let school = {
    // 	name: '武汉大学',
    //   study: function () {
    // 		console.log(this);
		// 		console.log("学校上课");
		// 	}
    // };

			student.say();
  </script>
</head>
<body>

</body>
</html>
